CREATE OR REPLACE PACKAGE "kesplus_app"."kes_plus_pkg_doc_template" AUTHID CURRENT_USER AS
	/**
	 * 新增模板
	 */
    FUNCTION add(jsonData TEXT) RETURN JSON;
    /**
     * 更新模板
     */
    FUNCTION update(jsonData TEXT) RETURN JSON;
    PROCEDURE delete(ids varchar);
    FUNCTION get(id varchar) RETURN JSON;
    FUNCTION page(jsonData text) RETURN JSON;
    /**
     * 获取模板内容
     */
    FUNCTION get_content(id varchar) RETURN JSON;
    FUNCTION get_by_name(name varchar) RETURN JSON;
END;

CREATE OR REPLACE PACKAGE BODY "kesplus_app"."kes_plus_pkg_doc_template" AS WRAPPED
TDCbM0aFsigukV0NfG4/El5GWB5K/BwPzB/0BM5fVs0+mSgeRXFoHHbL4AW6
F1uot3AQ8N5ybN2PHlj/aCk72qDvbp7fAEoFFk+k2hKETFOGWPd2+kSPznst
jvEXMHWmlvvQavIJDZchfm17GBdfxFNoVjCB1hfBuHas641jQyM60uTzjhkS
sVPrEwnTh9nnBlYlEqxX1jd6FP55cUOAT3VVrBsH+EV0zZLChkYZw1y89La8
qu0M5sxmqafSrmnrZb+jjVUlV8ImYjWdbW4swojfOsX8ddnGZeefKWdphpfp
wxQZFVD3ySOccX5WoAYIpOzCAyksRSY2o2va330ZDb08AXIuhrLO2Vb9n47p
qJyyprBsV3i0iK0x7tlDG65QX1mg56Jz3l3zj6R/5p9QeiGSHv+7YNsYqZtD
LXwr1y6EHil7kO1N9Sxl5xL2dpC9UAWs7qEKVn8t1ZV5hXJu7357801RtF/R
iwaJsUxneCVKsFvrl5jyCQmmJRh8m/O4XVMDCbL9oCutYToCRo3Se7D8B+ky
n3vRC5psc8HXFYpl3c24Kjpt1tnjzzUxScv6e35zXNHDSVwq6/E320etKXhE
+S85zzxGx4h6xXY32oURtl6nCIf3Ye/57fnf+OKyPnUjyI59Mt4YcXjydPuu
p8qp7tv6yUfzMaUygipYgLnJ4B8TRKAMbuQVyMgRoE3oNgLBp8IQrI9nRwYK
uIHmZv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